package com.song.provider.controller;

import com.song.provider.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 宋伟宁
 * @Date 2024/1/10
 * @Version 1.0
 **/
@RestController
public class UserController {
    @Resource
    private UserService userService;

    @GetMapping("/user1")
    public String user1(){
        this.userService.getUser();
        return "user1......";
    }

    @GetMapping("/user2")
    public String user2(){
        this.userService.getUser();
        return "user2......";
    }

}
